package org.example.myleet.p1337;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.Parser;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(Assert.isPass(new int[]{1,0}, solution.kWeakestRows(Parser.parse("[[1,0],[0,0],[1,0]]"), 2)));
        Assert.isTrue(Assert.isPass(new int[]{2,0,3}, solution.kWeakestRows(Parser.parse(
                "[[1,1,0,0,0],\n" +
                " [1,1,1,1,0],\n" +
                " [1,0,0,0,0],\n" +
                " [1,1,0,0,0],\n" +
                " [1,1,1,1,1]]"), 3)));
        Assert.isTrue(Assert.isPass(new int[]{0,2}, solution.kWeakestRows(Parser.parse(
                "[[1,0,0,0],\n" +
                " [1,1,1,1],\n" +
                " [1,0,0,0],\n" +
                " [1,0,0,0]]"), 2)));
    }
}
